package controller;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileNotFoundException;
import java.util.Observable;

import javax.swing.Timer;

import model.*;

import view.froggerView;


public class logController  {
	private froggerView view;
	private gameModelI model;
	Timer time = new Timer(20, new ActionListener() {

		@Override
		public void actionPerformed(ActionEvent arg0) {
			for(int i=0;i<25;i++){
				model.getLogs().get(i).move(0.1); //move each log with velocity of 0.1
			}
				view.repaint();
		}} );
	
	public logController(gameModelI m, froggerView v) {
		this.model = m;
		this.view = v;
		time.start();
	}
	
}
	
	
